package cn.initcap.designpattern.pattern.behavioral.state;

/**
 * @author initcap
 * @date Created in 2018/11/1 PM11:32.
 */
public class StopStateBase extends BaseCourseVideoState {
    @Override
    public void play() {
        super.courseVideoContext.setBaseCourseVideoState(CourseVideoContext.PLAY_STATE);
    }

    @Override
    public void speed() {
        System.out.println("ERROR 停止状态不能快进");
    }

    @Override
    public void pause() {
        System.out.println("ERROR 停止状态不能暂停");
    }

    @Override
    public void stop() {
        System.out.println("停止播放课程视频状态");
    }
}
